cmake_path(GET CMAKE_CURRENT_SOURCE_DIR STEM ModuleName)
project(${ModuleName})

file(GLOB_RECURSE sources ./src/*.h ./src/*.cc)

add_library(${PROJECT_NAME} SHARED
        ${sources}
)

target_include_directories(${PROJECT_NAME}
        PUBLIC include
)

string(TOUPPER ${PROJECT_NAME}_MODULE_LIB ModuleExportMacro)
target_compile_definitions(${PROJECT_NAME}
        PRIVATE "${ModuleExportMacro}"
)

target_link_libraries(${PROJECT_NAME}
        PUBLIC Util Base
)